﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StringToUnicodeCharLiteral
{
    class StringToUnicodeCharLiteral
    {
        static void Main(string[] args)
        {
            string input = "nguyen van vinh";
            Console.WriteLine(ConverttoUnicode(input));
            string inp = @"\nu2820";
           
        }
        public static string ConverttoUnicode(string input)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < input.Length; i++)
            { 
                sb.Append(string.Format(@"\n{0:X4}",(int)input[i]));
            }
            return sb.ToString();
        }
    }
}
